<%= error_messages_for :contact %>
<% form_for :contact, contact, :url => url do |f| %>
	<table class="form">
		<tr>
			<th><label for="contact_forename">Forename:</label></th>
			<td><%= f.text_field :forename %></td>
		</tr>
		<tr>
			<th><label for="contact_surname">Surname:</label></th>
			<td><%= f.text_field :surname %></td>
		</tr>
		<tr>
			<th><label for="contact_email">E-Mail Address:</label></th>
			<td><%= f.text_field :email %></td>
		</tr>
		<tr>
			<th><label for="contact_phone">Phone Number:</label></th>
			<td><%= f.text_field :phone %></td>
		</tr>
		<tr>
			<td></td>
			<td><input type="submit" name="submit" value="<%= (url[:action] == :new) ? "Add" : "Update" %> Contact"> <%= link_to "Cancel", {:action => "index"}, :confirm => "Any changes you have made will be lost if you cancel." %></td>
		</tr>
	</table>
<% end %>